<?php
/***
* @version $Id: constants.php 336 2007-01-23 08:12:56Z flexiondotorg $
* @copyright (c) 2006 - 2007 Flexion.Org
*            (c) 2004 - 2005 Project Minerva
*            (c) 2001 - 2006 phpBB Group
* @license   http://opensource.org/licenses/gpl-license.php GNU Public License
***/

if ( !defined('IN_R3BORN') )
{
	die('Hacking attempt');
}

// User Levels <- Do not change the values of USER or ADMIN
define('DELETED', -1);
define('ANONYMOUS', -1);

define('USER', 0);
define('ADMIN', 1);
define('MOD', 2);

// User related
define('USER_ACTIVATION_NONE', 0);
define('USER_ACTIVATION_SELF', 1);
define('USER_ACTIVATION_ADMIN', 2);

define('USER_AVATAR_NONE', 0);
define('USER_AVATAR_UPLOAD', 1);
define('USER_AVATAR_REMOTE', 2);
define('USER_AVATAR_GALLERY', 3);

define('USER_PROFILE_LINK', true);

// Gravatar MOD
define('USER_GRAVATAR', 4);
define('GRAVATAR_G', 0);
define('GRAVATAR_PG', 1);
define('GRAVATAR_R', 2);
define('GRAVATAR_X', 3);

// Captcha pretection types
define('CAPTCHA_REGISTRATION', 0);
define('CAPTCHA_POST', 1);

// Group settings
define('GROUP_OPEN', 0);
define('GROUP_CLOSED', 1);
define('GROUP_HIDDEN', 2);
define('GROUP_AUTO', 3);

// bbCode
define('BBCODE_UID_LEN', 10);

// SQL codes
define('BEGIN_TRANSACTION', 1);
define('END_TRANSACTION', 2);

// Error codes
define('GENERAL_MESSAGE', 200);
define('GENERAL_ERROR', 202);
define('CRITICAL_MESSAGE', 203);
define('CRITICAL_ERROR', 204);

// URL PARAMETERS
define('POST_USERS_URL', 'u');
define('POST_GROUPS_URL', 'g');
define('STYLE_URL', 's');

// Session parameters
define('SESSION_METHOD_COOKIE', 100);
define('SESSION_METHOD_GET', 101);

// Table names
define('CONFIRM_TABLE', $table_prefix.'confirm');
define('USER_GROUP_AUTH_ACCESS_TABLE', $table_prefix.'user_group_auth_access');
define('BANLIST_TABLE', $table_prefix.'banlist');
define('CONFIG_TABLE', $table_prefix.'config');
define('DISALLOW_TABLE', $table_prefix.'disallow');
define('GROUPS_TABLE', $table_prefix.'groups');
define('SEARCH_TABLE', $table_prefix.'search_results');
define('SEARCH_WORD_TABLE', $table_prefix.'search_wordlist');
define('SEARCH_MATCH_TABLE', $table_prefix.'search_wordmatch');
define('SEARCH_REBUILD_TABLE', $table_prefix.'search_rebuild');
define('SESSIONS_TABLE', $table_prefix.'sessions');
define('SESSIONS_KEYS_TABLE', $table_prefix.'sessions_keys');
define('SMILIES_TABLE', $table_prefix.'smilies');
define('THEMES_TABLE', $table_prefix.'themes');
define('USER_GROUP_TABLE', $table_prefix.'user_group');
define('USERS_TABLE', $table_prefix.'users');
define('WORDS_TABLE', $table_prefix.'words');

### R3-born - ADD
#
define('ADMIN_NAV_TABLE', $table_prefix.'admin_nav');
define('BLOCKS_TABLE', $table_prefix.'blocks');
define('JR_ADMIN_TABLE', $table_prefix.'jr_admin_users');
define('LAYOUT_TABLE',$table_prefix.'layout');
define('MODULES_TABLE', $table_prefix.'modules');
define('POLICY_TABLE', $table_prefix.'policy');

// Module states
define('MODULE_ERROR', -1);	        	# -1 = not good, some sort of error
define('MODULE_NOT_INSTALLED', 0);		# 0 = not installed
define('MODULE_ENABLED', 1);			# 1 = installed, running
define('MODULE_DISABLED', 2);			# 2 = installed, disabled
define('MODULE_UPDATE_REQUIRED', 3);	# 3 = not updated
define('MODULE_REMOVED', 4);			# 4 = removed
define('MODULE_DEFAULT', 5);			# 5 = default

// Module types
define('ADDON_MODULE', 0);
define('ADDON_BLOCK', 1);

// Block positions
define('BLOCK_TOP', 1);
define('BLOCK_LEFT', 2);
define('BLOCK_RIGHT', 3);
define('BLOCK_BOTTOM', 4);

// Policies
define ('REGISTRATION_POL_ID', 1);
define ('TERMS_POL_ID', 2);
define ('PRIVACY_POL_ID', 3);
define ('COPYRIGHT_POL_ID', 4);

// Search Rebuild
define('REBUILD_SEARCH_PROCESSED', 1);	// when a batch of posts has been processed
define('REBUILD_SEARCH_ABORTED', 0);	// when the user aborted the processing
define('REBUILD_SEARCH_COMPLETED', 2);	// when all the db posts have been processed

#
### R3-born - END ADD

?>